<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>编辑店铺</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/static/images/favicon.ico">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <script src="/static/layui/layui.js" charset="utf-8"></script>
    <!-- layer -->
    <script src="http://cdn.bootcss.com/jquery/1.12.3/jquery.min.js"></script>

    <script>
        function form_submit () {
            $('#edit_shop_form').submit();
        }
    </script>
</head>
<body>
<form id="edit_shop_form" class="layui-form" method="post" action="/update_shop/">
    {% csrf_token %}
    <div class="layui-form-item">
        <label class="layui-form-label">店铺名称</label>
        <div class="layui-input-block">
            <input type="text" name="shop_name" lay-verify="title" autocomplete="off" placeholder="请输入店铺名称"
                   class="layui-input" value={{ shop.name }}>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">店铺url</label>
        <div class="layui-input-block">
            <input type="text" name="shop_url" lay-verify="required" placeholder="请输入店铺url" autocomplete="off"
                   class="layui-input" value={{ shop.url }}>
        </div>
    </div>

    <input type="text" name="shop_id" hidden="hidden" value={{ shop.id }}>

</form>

</body>
</html>